﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using SalePartial.Model;

namespace SalePartial.IDAL
{
    public interface IXPCompany
    {
        int Delete(Guid CompanyID);

        int DeleteByUserID(Guid UserID);

        int DeleteDynamic(string v_whereCondition);

        int Insert(XPCompanyInfo info);

        DataSet SelectAll();

        DataSet SelectByUserID(Guid UserID);

        DataSet SelectDynamic(string v_whereCondition, string v_orderByExpression);

        DataSet SelectPaged();

        SqlDataReader SelectReader(Guid CompanyID);

        SqlDataReader SelectReaderByUserID(Guid UserID);

        DataSet SelectSingle(Guid CompanyID);

        int Update(XPCompanyInfo info);
    }
}
